/**
 * Created by Administrator on 2016/8/1.
 */

var uuid = require('node-uuid');
var logger = require('../../utils/logHelper').helper;
var loginService = require('../service/loginService');
/**
 * @param req
 * @param res
 */
//登录存储信息
exports.login = function(req, res) {
    var mobile =req.body.mobile;
    var password =req.body.password;
    var params ={
        mobile:mobile,
        password:password
    };
    loginService.login(params,function(err, rows) {
        if(err)
        {
            res.send({success:false,msg:"查询失败"});
        }else{
            res.send({success:true,data:rows});
        }
    });
};
